function loadSports() {
  var params = {};
  params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.SPORTS];
  var req = opensocial.newDataRequest();
  req.add(req.newFetchPersonRequest('VIEWER', params), 'viewer');
  req.send(onLoadSports);
}

function onLoadSports(data) {
	var viewer = data.get('viewer').getData();
	var mySports = viewer.getField(opensocial.Person.Field.SPORTS);
	document.getElementById('sports').innerHTML = mySports;
}

function init() {
  loadSports();
}